package com.mad.game.system; 

public final class Timer { 		
	private long last ; 
	public Timer() {
		this.last = getTime();  
	}
	public int getDelta(){
		long current = getTime(); 
		int delta = (int) (current - this.last) ; 
		this.last = current ; 
		return delta ; 
	}
	public static long getTime() {
		return (System.currentTimeMillis()) / 1000 ;
	}
}

